GtkHeaderBar: Add the titlebutton style to the close button
authorMatthias Clasen <mclasen@redhat.com>
Tue, 20 Aug 2013 15:33:07 +0000 (11:33 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 20 Aug 2013 19:23:36 +0000 (15:23 -0400)
This will let the theme unify the appearance of this button with
the window buttons in 'traditional' title bars.

gtk/gtkheaderbar.c

index 992f4414a1c5f86bdba137985d6835bc05cab874..a421860561df5120798e372e610cc90dcf695824 100644 (file)
@@ -235,6 +235,7 @@ add_close_button (GtkHeaderBar *bar)
   gtk_widget_set_valign (button, GTK_ALIGN_CENTER);
   context = gtk_widget_get_style_context (button);
   gtk_style_context_add_class (context, "image-button");
+  gtk_style_context_add_class (context, "titlebutton");
   icon = g_themed_icon_new ("window-close-symbolic");
   image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_MENU);
   g_object_unref (icon);